f = open(r"E:\data\Python\练手\b站课\1.txt", "w", encoding="utf-8")
f.write(input('输入要写入文件的内容：'))




f.close()